<html>
<head>
<TITLE>Marsems System</TITLE>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<LINK href="../css/style.css" type=text/css rel=stylesheet>
</head>
<script language="javascript" src="../js/Validation.js" type="text/JavaScript"></script>

<body bgcolor="#FFFFFF" text="#000000"><form name="form1" method="get" action="">
<table width="100%" cellspacing="1" cellpadding="4">
<tr> 
    <td colspan="7" align="left">
	    <label>Select User Group: 
	    <select name="groupID" id="groupID" onChange="return submit();">{html_options options=$arrUserGroup selected=$groupidS}</select>
	        </label>	</td>
    </tr>
  <tr bgcolor="#E4E4E4"> 
    <td width="10%" align="center">ID</td>
	<td width="20%">&nbsp;User Group</td>
    <td width="10%">&nbsp;Login Name</td>
    <td width="15%">&nbsp;User Name</td>
    <td width="15%">&nbsp;Add Date</td>
	<td width="10%">&nbsp;Status</td>
    <td width="20%">&nbsp;Operation | <b><a href="listUser_Add.php?menuGid={$menuGid}&menuid={$menuid}">Add</a></b></td>
  </tr>
  <tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'"> 
    <td colspan="7" align="center"><font color="#FF0000">{$error_message}</font></td>
  </tr>
  {foreach item=item from=$arrUserList}
  <tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'"> 
    <td align="center">{$item.id}</td>
    <td>&nbsp;{$item.gname}</td>
	<td>&nbsp;{$item.name}</td>
    <td>&nbsp;{$item.FirstName} {$item.MiddleName} {$item.LastName}</td>
    <td>&nbsp;{$item.regtime}</td>
	<td>{$item.status}</td>
    <td>{section name=opItem loop=$arrOperateInfo}
    		{if $smarty.section.opItem.index != 0}
	    		&nbsp;&nbsp;|&nbsp;&nbsp;
    	    {/if}

    		<a href="{$selfFileName}_{$arrOperateInfo[opItem].name}.php?menuGid={$menuGid}&menuid={$menuid}&id={$item.id}" onClick="return validDefault.isConfirmOperate('{$arrOperateInfo[opItem].name}')">{$arrOperateInfo[opItem].viewName}</a>
        
    {/section}</td>
  </tr>
  {/foreach}
</table><input name="menuGid" type="hidden" id="menuGid" value="{$menuGid}">
        <input name="menuid" type="hidden" id="menuid" value="{$menuid}"></form>
<table width="100%" cellspacing="0" cellpadding="4">
  <tr>
  	<td align="left" width="20%">{$PAGE_BAR}</td>
     <td align="center" width="80%"></td>
  </tr>
</table>
</body>
</html>